package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.adm;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.DriverInfo;

import java.util.List;

public interface DriverInfoMapper {
    /**
     * 删除驾驶员信息
     * @param driverId 驾驶员id
     * @return
     */
    int deleteByPrimaryKey(String driverId);

    /**
     * 新增驾驶员信息
     * @param record 驾驶员基本信息
     * @return
     */
    int insert(DriverInfo record);
    int insertSelective(DriverInfo record);

    /**
     * 查询驾驶员信息
     * @param driverId 主键
     * @return
     */
    DriverInfo selectByPrimaryKey(String driverId);

    /**
     * 更新驾驶员信息
     * @param record 驾驶员基本信息
     * @return
     */
    int updateByPrimaryKeySelective(DriverInfo record);
    int updateByPrimaryKey(DriverInfo record);

    /**
     * 驾驶员列表
     * @param bootstrapSearchBean
     * @return
     */
    List<DriverInfo> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 驾驶员总数量
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);
}